package com.linhh.mall.center.api;

import com.github.pagehelper.PageInfo;
import com.linhh.mall.center.common.pojo.GoodsAttach;
import com.linhh.mall.center.common.pojo.GoodsInfo;
import com.linhh.mall.center.common.pojo.GoodsQueryCondition;
import com.linhh.mall.center.common.pojo.ProductInfo;

import java.util.List;

/**
 * @Author linhh
 * @Date 2022 12 12 17 01
 **/
public interface GoodsInfoService {
    PageInfo<GoodsInfo> queryAllByCondition(GoodsQueryCondition condition);

    int addProductInfo(ProductInfo productInfo,String extrattribute,String introduce);

    public String staticPageBuild(GoodsInfo goodsInfo);

    int deleteImgByGoodsId(Long goodsId);

    void relatedImg(GoodsAttach goodsAttach);

    List<GoodsAttach> getImgs(Long goodsId);

    int updateGoods(GoodsInfo goodsInfo);

}
